Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite file matching for fs Open, ReadDir and Stat #354

Merged
merged 2 commits into from
Dec 5, 2022

Conversation

WeidiDeng
Copy link
Contributor

Rewrite majority logic of fs Open, ReadDir and Stat
also fixes 340

ArchiveFS previously assume directory entries are always present in archive file listing when they are not. Also files under the same directory are stored together (add a test zip file that's a result of appending additional files to it).

Removed Top* utility func used to stat implicit directories.

@WeidiDeng WeidiDeng force-pushed the fs-implicit-tweak branch 2 times, most recently from ed7c8b2 to 7bf5364 Compare October 15, 2022 14:07
@mholt
Copy link
Owner

mholt commented Oct 15, 2022

Removed Top* utility func used to stat implicit directories.

I do use these in a project though.

I will review this soon! Kind of taking the weekend off :) Thanks

@mholt
Copy link
Owner

mholt commented Nov 18, 2022

@WeidiDeng Is there any specific reason the Top* utility functions were removed?

I'd be willing to consider this PR if we can keep those.

@WeidiDeng
Copy link
Contributor Author

@WeidiDeng Is there any specific reason the Top* utility functions were removed?

I'd be willing to consider this PR if we can keep those.

I have no reason against these functions, just because new code paths don't use them. I can add back if you want to.

@mholt
Copy link
Owner

mholt commented Nov 18, 2022

@WeidiDeng Yeah, if we could add them back, I would appreciate it, since I use them in one of my projects :)

Copy link
Owner

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an impressive change. Thanks for working on it. I guess it's faster (and more correct)?

I really appreciate this! (merge at will)

@mholt mholt merged commit 62ea369 into mholt:master Dec 5, 2022
mholt added a commit that referenced this pull request Aug 21, 2024
I think this is what @WeidiDeng intended from #354
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArchiveFS.Open returns the first file in an implicit directory rather than a fs.ReadDirFile
2 participants